package com.lvshou.medicalkit.base;

/**
 * Created by long on 2017/1/19.
 * 滑动退出Activity，参考：https://github.com/ikew0ng/SwipeBackLayout
 */
public abstract class BaseSwipeBackActivity<T extends BasePresenter> extends BaseActivity<T> {

//    private SwipeBackLayout mSwipeBackLayout;
//
//    @Override
//    protected void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//        getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));
//        mSwipeBackLayout = new SwipeBackLayout(this);
//    }
//
//    @Override
//    protected void onPostCreate(Bundle savedInstanceState) {
//        super.onPostCreate(savedInstanceState);
//        mSwipeBackLayout.attachToActivity(this, SwipeBackLayout.EDGE_LEFT);
//        // 触摸边缘变为屏幕宽度的1/4
//        mSwipeBackLayout.setEdgeSize(getResources().getDisplayMetrics().widthPixels / 4);
//    }
//
//    public SwipeBackLayout getSwipeBackLayout() {
//        return mSwipeBackLayout;
//    }
}
